/**
 * admui-basic v2.1.0 (http://www.admui.com/)
 * Copyright 2015-2019 Admui Team
 * Licensed under the Admui License 1.1 (http://www.admui.com/about/license)
 */
(function($) {
  'use strict';

  /* global Skycons */

  $(function() {
    // 天气小工具示例

    var exRain;
    var exSnow;
    var exSleet;

    // 上海 - 雨
    exRain = new Skycons({
      color: 'white'
    });
    exRain.set(document.getElementById('ex4-rain'), 'rain');
    exRain.play();

    // 中雪
    exSnow = new Skycons({
      color: 'white'
    });
    exSnow.set(document.getElementById('ex6-snow'), 'snow');
    exSnow.play();

    // 下雨
    exSleet = new Skycons({
      color: '#212121'
    });
    exSleet.set(document.getElementById('ex7-sleet'), 'sleet');
    exSleet.play();
  });
})(jQuery);
